package com.qdevelop.model.ztest;

import java.util.Map;
import java.util.Random;

import com.qdevelop.control.bean.QueryBean;
import com.qdevelop.control.bean.ResultBean;
import com.qdevelop.standard.BeforeRunInterface;
import com.qdevelop.standard.BehindRunInterface;

public class Test implements BeforeRunInterface,BehindRunInterface {
	public Test(){
	}
	public static void tt(){
		System.out.println("tt");
	}
	
	public void test(String a){
		System.out.println(a);
	}
	public void testinit(String a,String b){
		System.out.println(a+"|"+b);
	}
	public void testint(String a,int b){
		System.out.println(a+"|"+b);
	}
	
	
	public void runMap(Map t){
		System.out.println(t.toString());
	}
	
	public void runStr(String t){
		System.out.println(t.toString());
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String[] value = "23456789abcdefhjkmnprstuvwxyzABCDEFGHJKLMNPRSTUVWXYZ".split("");
		Random random = new Random();  
		for(int i=0;i<100;i++){
			System.out.print("("+random.nextInt(6)+",'"+value[random.nextInt(value.length)]+value[random.nextInt(value.length)]+value[random.nextInt(value.length)]+value[random.nextInt(value.length)]+"'),");
		}
	}
	@Override
	public Map beforeRun(Map param) {
		System.out.println(param.toString());
		return param;
	}
	@Override
	public void afterRun(QueryBean qb, ResultBean rb) {
		System.out.println(qb.getSQLByOrder());
		System.out.println(rb.toString());
	}
}
